<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动感立方体</title>
    <style>
        .box {
            height: 200px;
            width: 200px;
            margin: auto;
            background-color: aliceblue;
            position: relative;
            transform-style: preserve-3d;

            /* animation-play-state: running;
            -webkit-animation-play-state: running; */
            /* animation: rotate 10s linear infinite;  */

            animation: rotate 10s linear infinite;
        }

        @keyframes rotate {
            to {
                transform: rotateX(360deg) rotateY(360deg)rotateZ(360deg) translateX(200px)scale(1.5)translateY(300px);
            }

        }

        /* .box:hover {
        } */

        body {
            perspective: 10000px;
        }

        .firstbox {
            width: 100%;
            height: 100%;
            background-color: aqua;
            position: absolute;
            text-align: center;
            border: 1px aqua solid;
            list-style: none;

        }

        .front {
            transform: translateZ(100px);
        }

        .behind {
            transform: translateZ(-100px);
        }

        .left {
            transform: translate(-50%) rotateY(90deg);
        }

        .right {
            transform: translate(50%)rotateY(90deg);
        }

        .top {
            transform: translateY(-50%)rotateX(90deg)
        }

        .bottom {
            transform: translateY(50%) rotateX(90deg);
        }

        img {
            width: 200px;
            height: 200px;
        }

        .eachbox {
            width: 200px;
            height: 200px;
            background-color: aliceblue;
            position: relative;
            transform-style: preserve-3d;
            margin: auto;
            top: 50px;
            position: relative;
            border-radius: 50%;
            animation: e-animation 5s infinite linear;
        }



        @keyframes e-animation {
            from {
                transform: rotateX(1080deg)translateY(100px)
            }

            50% {
                transform: rotateX(1080deg)translateY(-100px);
            }



        }
    </style>
</head>

<body>
    <div class="box">
        <div class="firstbox front"></div>
        <div class="firstbox behind"><img src="image/美女.webp" alt=""></div>
        <div class="firstbox left"></div>
        <div class="firstbox right"><img src="image/美女.webp" alt=""></div>
        <div class="firstbox top"><img src="image/美女.webp" alt=""></div>
        <div class="firstbox bottom"><img src="image/美女.webp" alt=""></div>
    </div>
    <div class="eachbox">

    </div>
</body>

</html>